package com.liu.proxy_studey.staticProxy;

/**
 * 坑人的中介
 */
public class Intermediary implements Rent{
    private Landlord landlord;

    public Intermediary(Landlord landlord) {
        this.landlord = landlord;

    }

    private void before(){
        System.out.println("中介带你看房");
    }
    private void after(){
        System.out.println("中介跟你签合同,坑你钱");
    }

    public void RentHouse() {
        before();
        landlord.RentHouse();
        after();

    }
}
